package com.nidu.demo.oauth2.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nidu.demo.oauth2.mapper.dataobject.OAuth2ClientDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface OAuth2ClientMapper extends BaseMapper<OAuth2ClientDO> {

    @Select("SELECT * FROM sys_oauth2_client WHERE client_code = #{clientCode} LIMIT 1")
    OAuth2ClientDO selectByClientCode(String clientCode);

}